<?php
/* Smarty version 3.1.28, created on 2020-11-01 11:40:03
  from "D:\phpstudy_pro\WWW\medooMvc\view\index.html" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.28',
  'unifunc' => 'content_5f9e2e13dafc61_95033384',
  'file_dependency' => 
  array (
    '464a45576eff1a2ca067b41efac4c31d90fa0835' => 
    array (
      0 => 'D:\\phpstudy_pro\\WWW\\medooMvc\\view\\index.html',
      1 => 1463640050,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5f9e2e13dafc61_95033384 ($_smarty_tpl) {
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title><?php echo $_smarty_tpl->tpl_vars['title']->value;?>
</title>
</head>
<body>
<p>
    view:<h1><?php echo $_smarty_tpl->tpl_vars['content']->value;?>
</h1>
</p>
<p>
    下面的内容来自数据库：<br/>
    <table border="1" cellpadding="30" >
    <tr>
        <th>编号</th><th>姓名</th>
    </tr>
    <?php
$_from = $_smarty_tpl->tpl_vars['userList']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_item_0_saved_item = isset($_smarty_tpl->tpl_vars['item']) ? $_smarty_tpl->tpl_vars['item'] : false;
$_smarty_tpl->tpl_vars['item'] = new Smarty_Variable();
$__foreach_item_0_total = $_smarty_tpl->smarty->ext->_foreach->count($_from);
if ($__foreach_item_0_total) {
foreach ($_from as $_smarty_tpl->tpl_vars['item']->value) {
$__foreach_item_0_saved_local_item = $_smarty_tpl->tpl_vars['item'];
?>
        <tr>
            <td><?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
</td><td><?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
</td>
        </tr>
    <?php
$_smarty_tpl->tpl_vars['item'] = $__foreach_item_0_saved_local_item;
}
}
if ($__foreach_item_0_saved_item) {
$_smarty_tpl->tpl_vars['item'] = $__foreach_item_0_saved_item;
}
?>
    </table>
</p>
</body>
</html><?php }
}
